package com.empire.module.member.controller.admin.warninggatherperson.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 聚集预警参与人员关联表（1条记录对应1人参与1次聚集）新增/修改 Request VO")
@Data
public class WarningGatherPersonSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "28045")
    private Long id;

    @Schema(description = "聚集预警ID（关联warning_gather.id）", requiredMode = Schema.RequiredMode.REQUIRED, example = "22298")
    @NotNull(message = "聚集预警ID（关联warning_gather.id）不能为空")
    private Long gatherId;

    @Schema(description = "参与人员ID（关联person.id）", requiredMode = Schema.RequiredMode.REQUIRED, example = "3769")
    @NotNull(message = "参与人员ID（关联person.id）不能为空")
    private Long personId;

}